<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>系统管理员 HDSysCms</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/layui/css/layui.css" media="all">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/style/admin.css" media="all">
<style type="text/css" media="screen">body {overflow: hidden;}</style>
</head>
<body data="HDSYSCMS 2021本系统受国家版权局保护请勿破解或者二次开发传播">
<div class="layui-card">
<div class="layui-tab layui-tab-brief" lay-filter="component-tabs-hash">
<div style="position: absolute;
z-index: 99999;
left: 132px;
top: 12px;
color: #999;"> /<?php echo $param_mode_file; ?></div>
<ul class="layui-tab-title">
<li class="layui-this" id="save" title="快捷键 Ctrl + S 或 Command + S 保存" lay-id="11">保存修改</li>
<i style="padding-top: 10px;
float: right;
padding-right: 20px;
padding-left: 20px;" id="chm" class="layui-icon layui-icon-tips" title="使用帮助 F2"></i>
</ul>
<div style="padding: 0px;
width: 100%;
height: 100%;
position: absolute;" class="layui-tab-content hdsys-tab-content">
<pre id="editor"><div><?php echo htmlentities($param_tmp) ?></div></pre>
</div>
</div>
<style>.layui-card {margin-bottom: 0px;border-radius: 2px;background-color: #fff;box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);height: 100vh;}.hdsys-tab-content {padding: 0px;width: 100%;height: 100%;position: absolute;}.editor-box {}#editor {padding-left: 5px;margin: 0;position: absolute;top: 0;bottom: 45px;left: 0;right: 0;}.layui-card .layui-tab-brief .layui-tab-title {height: 42px;border-bottom-color: #2e8cee;border-bottom-width: 3px;}.layui-tab-brief>.layui-tab-more li.layui-this::after,.layui-tab-brief>.layui-tab-title .layui-this::after {border-bottom: 2px solid #2e8cee00;}.layui-card .layui-tab-brief .layui-tab-title li:hover {background-color: #2e8cee;color: #fff;font-size: 15px;}.layui-card .layui-tab-brief .layui-tab-title li:active {background-color: #277bd2;color: #d2cdcd !important;font-size: 16px;}.layui-card .layui-tab-brief .layui-tab-title li {background-color: #2e8cee;color: #fff !important;margin: 0;padding-left: 20px;padding-right: 20px;}</style>
</div>
<?php adminechohtnl(); ?>
<script src="<?php echo getcdnurlhost() ?>/ace-hdsyscms/kitchen-sink/require.js"></script>
<script src="//cdn.hdsyscms.com/jq/jquery-1.11.3.min.js"></script>
<script src="//cdn.hdsyscms.com/js-beautify-main/js/lib/unpackers/javascriptobfuscator_unpacker.js"></script>
<script src="//cdn.hdsyscms.com/js-beautify-main/js/lib/unpackers/urlencode_unpacker.js"></script>
<script src="//cdn.hdsyscms.com/js-beautify-main/js/lib/unpackers/p_a_c_k_e_r_unpacker.js"></script>
<script src="//cdn.hdsyscms.com/js-beautify-main/js/lib/unpackers/myobfuscate_unpacker.js"></script>
<script src="//cdn.hdsyscms.com/js-beautify-main/web/common-function.js"></script>
<script>var the={beautifier_file: './beautifier.min',beautifier: null,beautify_in_progress: false,editor: null};requirejs.config({baseUrl: '//cdn.hdsyscms.com/js-beautify-main/js/lib',paths: {'beautifier': the.beautifier_file}});function beautify() {var source=editor.getValue(),output,opts={};the.lastInput=source;language='html';opts={"indent_size": "4","indent_char": " ","max_preserve_newlines": "0","preserve_newlines": true,"keep_array_indentation": false,"break_chained_methods": false,"indent_scripts": "normal","brace_style": "expand","space_before_conditional": true,"unescape_strings": false,"jslint_happy": false,"end_with_newline": false,"wrap_line_length": "0","indent_inner_html": false,"comma_first": false,"e4x": false,"indent_empty_lines": false};var source=source.replace(/\{hdsyscms-value(\s)(.*?)\}/, (sub, index)=> {var str=sub;str=str.replaceAll('{', '--zuokuohao');str=str.replaceAll('}', '--youkuohao');str=str.replaceAll(' ', '--kongge');return str;});output=the.beautifier.html(source, opts);output=output.replaceAll('--zuokuohao', '{');output=output.replaceAll('--youkuohao', '}');output=output.replaceAll('--kongge', ' ');editor.setValue(output);};var editor='';require.config({paths: {"ace": "//cdn.hdsyscms.com/ace-hdsyscms/lib/ace"}});require(["ace/ace", "ace/ext/language_tools"], function(ace, langTools) {editor=ace.edit("editor");editor.setTheme("ace/theme/xcode");editor.session.setMode("ace/mode/html");editor.setOptions({enableBasicAutocompletion: true,enableSnippets: true,enableLiveAutocompletion: true,showPrintMargin: true});editor.on("change", function(e) {editor.execCommand("startAutocomplete");});langTools.addCompleter({getCompletions: function(editor, session, pos, prefix, callback) {if (prefix.length===0) {callback(null, []);return}callback(null, [{value: '$data.name',score: 1000,meta: '内容标题'},{value: '$data.seokeywords',score: 1000,meta: 'SEO关键词'},{value: '$data.seodescription',score: 1000,meta: 'SEO描述'},{value: '$data.content',score: 1000,meta: '内容'},{value: '$data.static_url',score: 1000,meta: 'URL'},{value: '$data.graph',score: 1000,meta: '缩略图'},{value: '$data.album',score: 1000,meta: '图片数组 产品表特有'},{value: '$data.attribute1',score: 1000,meta: '属性1'},{value: '$data.attribute2',score: 1000,meta: '属性1'},{value: '$data.attribute3',score: 1000,meta: '属性1'},{value: '$data.attribute4',score: 1000,meta: '属性1'},{value: 'name',score: 1000,meta: '内容标题'},{value: 'seokeywords',score: 1000,meta: 'SEO关键词'},{value: 'seodescription',score: 1000,meta: 'SEO描述'},{value: 'content',score: 1000,meta: '内容'},{value: 'static_url',score: 1000,meta: 'URL'},{value: 'graph',score: 1000,meta: '缩略图'},{value: 'album',score: 1000,meta: '图片数组 产品表特有'},{value: 'attribute1',score: 1000,meta: '属性1'},{value: 'attribute2',score: 1000,meta: '属性1'},{value: 'attribute3',score: 1000,meta: '属性1'},{value: 'attribute4',score: 1000,meta: '属性1'},{value: 'list',score: 1000,meta: 'list'},{value: 'news',score: 1000,meta: 'news'},{value: 'links',score: 1000,meta: 'links'},{value: 'product',score: 1000,meta: 'product'},{value: 'picture',score: 1000,meta: 'picture'},{value: 'download',score: 1000,meta: 'download'}]);}});editor.commands.addCommand({name: "showKeyboardShortcuts",bindKey: {win: "Ctrl-Alt-h",mac: "Command-Alt-h"},exec: function(editor) {ace.config.loadModule("ace/ext/keybinding_menu", function(module) {module.init(editor);editor.showKeyboardShortcuts();});}});editor.commands.addCommand({name: '保存编辑',bindKey: {win: 'Ctrl-S',mac: 'Command-S'},exec: function(editor) {$("#save").click();}});editor.commands.addCommand({name: '格式化代码',bindKey: {win: 'Ctrl-B',mac: 'Command-B'},exec: function(editor) {layer.load(1);beautify();layer.closeAll('loading');}});editor.commands.addCommand({name: '使用帮助',bindKey: {win: 'F2',mac: 'F2'},exec: function(editor) {editor.execCommand("showKeyboardShortcuts");}});$(document).on('click', "#chm", function(e) {editor.execCommand("showKeyboardShortcuts");});});</script>
<script src="<?php echo getcdnurlhost() ?>/admin/layui/layui.js"></script>
<script>layui.config({base: '<?php echo getcdnurlhost() ?>/admin/'}).use(['form', 'layer', 'element', 'flow', 'upload'], function() {var admin=layui.admin,$=layui.$,form=layui.form,element=layui.element,upload=layui.upload,router=layui.router();$(document).on('click', "#save", function(e) {layer.load(1);var editortxt=editor.getValue();$.ajax({type: "post",url: 'index.php?m=manage&c=Div&a=save_ajax&id=<?php echo set_get('id') ?>&dir=<?php echo set_get('dir')  ?>&file=<?php echo set_get('file')  ?>&type=<?php echo set_get('type '); ?>',data: editortxt,dataType: "json",success: function(ret) {layer.closeAll('loading');layer.msg(ret.msg);if (ret.code==1) {if (top.document.getElementById('iframe') !=null) {top.document.getElementById('iframe').contentWindow.location.reload();}if (ret.is==1) {window.location.reload();}}if (typeof ret.push && ret.push !='') {layer.alert(ret.push);}}});return false;});});</script>
</body>
</html>